﻿using Heroius.Extension.WPF;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Heroius.BlueMeasure
{
    /// <summary>
    /// ConfigWindow.xaml 的交互逻辑
    /// </summary>
    public partial class ConfigWindow : Window
    {
        public ConfigWindow()
        {
            InitializeComponent();
            DataContext = this;
        }

        public Configuration Config { get { return Configuration.Default; } }
    }

    public class Configuration
    {
        [PropertyPanel(Order = -1)]
        public static Configuration Default { get; set; }

        [PropertyPanel(Label = "点标记基础半径")]
        public double AsisPointSize { get; set; } = 2.0;
        [PropertyPanel(Label = "线标记基础宽度")]
        public double AsisLineWidth { get; set; } = 2.5;
        [PropertyPanel(Label = "标记随图片缩放")]
        public bool AsisZoom { get; set; } = true;
    }
}
